package com.kuang.entity;

import com.baomidou.mybatisplus.annotation.TableName;

@TableName("kss_user")
public class User {

    //主键
    private Long id;
    // 用户名
    private String username;
    // 密码
    private String password;
    // 微信小程序openid
    private String openid;

    private String role;

    public User(Long id, String username, String password, String openid, String role) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.openid = openid;
        this.role = role;
    }

    public static void main(String[] args) throws CloneNotSupportedException {
       User user1= new User(1L,"sa","as","ss","q1");
        User user2= new User(2L,"sa","as","ss","q1");
        User clone = (User) user1.clone();
       // System.out.println(clone);
        System.out.println(user1.hashCode());
        System.out.println(user2.hashCode());
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
}
